<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>
        <?php
        if (mysql_connect(localhost,joyfulmo,wei6271)){
            echo "<font color='green'>successful</font>";
            mysql_close();
        }
        else{
            echo "<font color='red'>failed</font>";
        }
        $out=`ls`;
        echo gettype($out);
        echo "<pre>$out</pre>";
        $a=14;
        $doc=$_SERVER["DOCUMENT_ROOT"];
        echo "xiaohui:".isset($a)."<br />";
        echo $doc;
        $fp=fopen($doc."/doc.txt","w");
        echo "<br />".gettype($fp);
        $text="hello php txt windows";
        fwrite($fp, $text);
        $out=`ls`;
        echo "<pre>$out</pre>";
        unlink($doc."/doc.txt");
        $out=`ls`;
        echo "<pre>$out</pre>";
        ?>
    </body>
</html>
